package com.baizhi.service.impl;

import com.baizhi.annotation.MyAdvice;
import com.baizhi.service.UserService;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {

    @Override
    public void save(String name) {
        System.out.println("处理save核心业务逻辑，调用Dao~~");
    }

    @Override
    public void update(String name) {
        System.out.println("处理update核心业务逻辑，调用Dao~~");
    }

    @Override
    public void delete(Integer id) {
        System.out.println("处理delete核心业务逻辑，调用Dao~~");
    }

    @MyAdvice
    @Override
    public String find(Integer id) {
        System.out.println("处理find核心业务逻辑，调用Dao~~");
        return "xiaochen";
    }
}
